gtk: add nullable annotations for Scrollable getters
authorBilal Elmoussaoui <bil.elmoussaoui@gmail.com>
Sat, 1 Jan 2022 16:39:45 +0000 (17:39 +0100)
committerBilal Elmoussaoui <bil.elmoussaoui@gmail.com>
Sat, 1 Jan 2022 16:39:45 +0000 (17:39 +0100)
The adjustment setters takes a nullable and so should the getters be annotated

gtk/gtkscrollable.c

index 0d4a2d51afb7bafa5df3ffd64cc562a32ac6f0c1..041f09ac04eade410cf958412806114ce77f4549 100644 (file)
@@ -130,7 +130,7 @@ gtk_scrollable_default_init (GtkScrollableInterface *iface)
  *
  * Retrieves the `GtkAdjustment` used for horizontal scrolling.
  *
- * Returns: (transfer none): horizontal `GtkAdjustment`.
+ * Returns: (transfer none) (nullable): horizontal `GtkAdjustment`.
  */
 GtkAdjustment *
 gtk_scrollable_get_hadjustment (GtkScrollable *scrollable)
@@ -174,7 +174,7 @@ gtk_scrollable_set_hadjustment (GtkScrollable *scrollable,
  *
  * Retrieves the `GtkAdjustment` used for vertical scrolling.
  *
- * Returns: (transfer none): vertical `GtkAdjustment`.
+ * Returns: (transfer none) (nullable): vertical `GtkAdjustment`.
  */
 GtkAdjustment *
 gtk_scrollable_get_vadjustment (GtkScrollable *scrollable)